<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>千禧宝贝连锁店管理信息系统</title>

</head>
<body>
	<script>
function saveHeadqTag(){
    if (!$('#updateHeadqTagForm').form('validate'))
    	return ;
	else {
	    var params=$("#updateHeadqTagForm").serialize();

        $.post("basicDataJSON!updateHeadqTag",params, updateHeadqTagBKProcess,"json");	
	}
}
function updateHeadqTagBKProcess(data){
	var response = data.response;
	var returnCode = response.returnCode;
	if (returnCode != SUCCESS)
		$.messager.alert('错误', response.message, 'error');
	else {
		$.modalDialog.handler.dialog('close');
		$("#dataGrid").datagrid('reload');
	}		
}
</script>
	<s:form id="updateHeadqTagForm" name="updateHeadqTagForm" method="post"
		action="" cssClass="easyui-form" theme="simple"
		onsubmit="return validateForm();">
		<table width="100%" border="0">
			<tr>
				<td colspan="2"></td>
			</tr>
			<tr class="InnerTableContent">
				<td>标签名字:</td>
				<td><s:hidden name="formBean.headQTag.id" /> <s:textfield
						id="tagName" name="formBean.headQTag.tagName"
						cssClass="easyui-validatebox"
						data-options="required:true,validType:['length[2,20]']" /></td>
			</tr>
			<tr class="InnerTableContent">
				<td>标签组名 :</td>
				<td> <s:select name="formBean.headQTag.groupId.id"
									id="type" cssClass="easyui-combobox"
									data-options="width:100,editable:false"
									list="uiBean.tagGroups" listKey="id"
									listValue="groupName" /></td>
			</tr>
			<tr class="InnerTableContent">
				<td colspan="2"><a onclick="saveHeadqTag();"
					href="javascript:void(0);" class="easyui-linkbutton">保存</a></td>
			</tr>
		</table>
	</s:form>

</body>
</html>